package com.example.settlement;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Description:
 *
 * Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
 *
 * Reason: Failed to determine a suitable driver class
 *
 * 解决方法两种：
 * 1、spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
 * 2、@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
 */
//去掉Druid
//@SpringBootApplication(exclude= {DruidDataSourceAutoConfigure.class})
@SpringBootApplication
@MapperScan("com.example.settlement.mapper")
public class SettlementMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(SettlementMainApplication.class, args);
    }
}
